<script setup>
import useStore from '../store';

const { todos } = useStore()
</script>

<template>
  <footer class="footer">
    <span class="todo-count"><strong>{{ todos.leftCount }}</strong> item left</span>
    <ul class="filters">
      <li v-for="item in todos.filters">
        <a href="#/" @click="todos.changeActive(item)">{{ item }}</a>
      </li>
    </ul>
    <button class="clear-completed" @click="todos.clearTodo">Clear completed</button>
  </footer>
</template>

<style lang="less" scoped>
</style>
